-- immunity
-- created by panyl
-- 免疫中毒、诅咒

return {
    -- 返回的是提升的攻击点数
    apply = function(prop, baseValue)
        return prop[3];
    end,

    record = function(target, prop, path)
        return false;
    end,

    desc = function(prop)
        local desc = PropM.query(prop[1], "desc");
        local effect = "";

        if prop[2] == "abnormal" then
            effect = getLocStr("abnormal_status");
        else
            local statusId = CombatStatusM.getStatusId(prop[2]);
            effect = CombatStatusM.query(statusId, "name");
        end

        desc = string.gsub(desc, "{0}", effect);

        return desc;
    end,
};